import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { SQLite } from '@ionic-native/sqlite';
import { File } from '@ionic-native/file';

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import MenuPage from './menu.component';
import ProgressPage from './progress.component';

import { GLCatalogProvider } from './classes/GLCatalog';
import GLCatalogProvider4 from './classes/GLCatalogProvider4.service';
import HtmlEmbed from './EmbedHTML.directive';

@NgModule({
	declarations: [
		MyApp,
		HomePage,
		HtmlEmbed,
		MenuPage,
		ProgressPage
	],
	imports: [
		BrowserModule,
		IonicModule.forRoot(MyApp),
		HttpModule
	],
	bootstrap: [IonicApp],
	entryComponents: [
		MyApp,
		HomePage,
		MenuPage,
		ProgressPage
	],
	providers: [
		StatusBar,
		SplashScreen,
		SQLite,
		File,
		{provide: ErrorHandler, useClass: IonicErrorHandler},
		{provide: GLCatalogProvider, useClass: GLCatalogProvider4}
	]
})
export class AppModule {}
